class CateModelEntity {
	List<CateModelData> data;
	int code;
	String msg;

	CateModelEntity({this.data, this.code, this.msg});

	CateModelEntity.fromJson(Map<String, dynamic> json) {
		if (json['data'] != null) {
			data = new List<CateModelData>();
			(json['data']['list'] as List).forEach((v) { data.add(new CateModelData.fromJson(v)); });
		}
		code = json['code'];
		msg = json['msg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
		data['code'] = this.code;
		data['msg'] = this.msg;
		return data;
	}
}

class CateModelData {
//   taobao_cat_id	商品分类ID
// name	商品分类名称
// icon	商品分类图标
// pid	父级分类ID

	String taobao_cat_id;
	String name;
	String icon;
	String pid;


	CateModelData({this.taobao_cat_id, this.name, this.icon, this.pid});

	CateModelData.fromJson(Map<String, dynamic> json) {
		taobao_cat_id = json['taobao_cat_id'];
    name=json['name'];
		icon = json['icon'];
		pid = json['pid'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['taobao_cat_id'] = this.taobao_cat_id;
		data['name'] = this.name;
		data['icon'] = this.icon;
		data['pid'] = this.pid;
		return data;
	}
}